import ITableColumn from './types/ITableColumn'

export const defineColumn = (
  prop: string,
  title: string,
  width: number,
  otherOptions?: any
): ITableColumn => ({
  prop,
  title,
  width,
  ...(otherOptions || {}),
})
